package cn.com.dhc.danlu.business.shopcar.bean;

import java.util.List;

import cn.com.dhc.danlu.business.shopcar.typefactory.IShopCarTypeFactory;
import cn.com.hd.mall.web.webservices.entity.response.shoppingcart.MerchWraper;
import cn.com.hd.mall.web.webservices.entity.response.shoppingcart.WrapPromotionBean;

/**
 * author: 李一方(<a href="mailto:liyifang@danlu.com">liyifang@danlu.com</a>)<br/>
 * version: 1.0.0<br/>
 * since: 2017-02-27 16:58
 *
 * <p>
 * 促销区域
 * </p>
 */
public class PromotionBean extends ShopCarItem {
    private WrapPromotionBean promotionBean;

    public PromotionBean() {
        promotionBean = new WrapPromotionBean();
    }

    public WrapPromotionBean getPromotion() {
        return this.promotionBean;
    }

    @Override
    public int type(IShopCarTypeFactory factory) {
        return factory.type(this);
    }

    public String getMsgGift() {
        return promotionBean.getMsgGift();
    }

    public void setMsgGift(String msgGift) {
        promotionBean.setMsgGift(msgGift);
    }

    public String getMsgReduce() {
        return promotionBean.getMsgReduce();
    }

    public void setMsgReduce(String msgReduce) {
        promotionBean.setMsgReduce(msgReduce);
    }

    public List<MerchWraper> getMerchWraperList() {
        return promotionBean.getMerchWraperList();
    }

    public void setMerchWraperList(List<MerchWraper> merchWraperList) {
        promotionBean.setMerchWraperList(merchWraperList);
    }

    public boolean isValid() {
        return promotionBean.isValid();
    }
}
